<extend name="Layout/page_detail" />
<block name="content">
{:W('PageHeader/simple',array('name'=>'添加思想汇报:'.$folder_name,'search'=>'N'))}

	<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"  class="well form-horizontal">
		<input type="hidden" id="ajax" name="ajax" value="0">
		<input type="hidden" id="opmode" name="opmode" value="add">


		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="name">标题*：</label>
            <div class="col-sm-8">
                <input type="text" id="name" name="name" value="" class="form-control" check="require">
            </div>
        </div>
		<div class="clearfix"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="content">汇报内容*：</label>
            <div class="col-sm-10">
                <textarea  class="editor" id="content" name="content" style="width:100%;height:200px;" check="require"  msg="请输入内容"></textarea>
            </div>
        </div>
		<div class="clearfix"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="comment">评语：</label>
            <div class="col-sm-10">
                <textarea  class="editor" id="comment" name="comment" style="width:100%;height:200px;" ></textarea>
            </div>
        </div>
		<div class="form-group  col-sm-6">
            <label class="col-sm-4 control-label" for="is_post">是否展示*：</label>
            <div class="col-sm-8">
                <select name="is_post" id="is_post" class="form-control" msg="请选择" check="require">
                    <option value="">请选择</option>
                    
					<option value="0">不展示</option>
					<option value="1">展示</option>
				</select>
            </div>
        </div>        <div class="form-group">

        </div>
		<div class="form-actions">
			<input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();">
			<input  class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
		</div>
	</form>
</block>
<block name="js">
	<script type="text/javascript">
		function save() {
			window.onbeforeunload = null;
			if (check_form("form_data")) {
            sendForm("form_data", "{:U('save')}");
			}
		}
        $(document).ready(function() {

        });
    </script>
</block>